//
//  ProjectDetailsView.m
//  Bracelet
//
//  Created by steve on 15-3-21.
//  Copyright (c) 2015年 jing zhao. All rights reserved.
//

#import "ProjectDetailsView.h"
#import "LearnMoreInfor.h"
@implementation ProjectDetailsView

-(void)loadLearnMoreInfor{
  [self updateNetwork];
}
-(void)updateNetwork{
  [LearnMoreInfor getLearnMoreSuccess:^(LearnMoreInfor *learnMore) {
    [self.ui_webView loadHTMLString:learnMore.loadedHTML baseURL:nil];
  } failure:^(NSError *error) {
    
  }];
}
-(void)layoutSubviews{
  CGFloat width = [[UIScreen mainScreen] bounds].size.width;
  CGFloat height = [[UIScreen mainScreen] bounds].size.height;
  CGFloat tempHeight = height-50;
  CGFloat tempWidth = width-20;
  self.frame = CGRectMake(0, 0, tempWidth, tempHeight);
  [super layoutSubviews];
}
@end
